package com.api.demo.dto.sync;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @description: 同步通用参数DTO
 * @author: yanming
 * @createDate: 2022/10/04 15:05
 */
@Data
@ApiModel(description = "同步通用参数DTO")
public class SyncDataDTO implements Serializable {


    private static final long serialVersionUID = 8722774343741386811L;
    @ApiModelProperty(value = "时间戳" ,required = true)
    @NotNull(message = "时间戳不能为空")
    private Long timestamp;

    @ApiModelProperty(value = "sign",required = true)
    @NotBlank(message = "sign不能为空")
    private String sign;


    @ApiModelProperty(value = "平台ID",required = true)
    @NotNull(message = "平台ID")
    private Long platformId;

    @ApiModelProperty(value = "代理商ID",required = true)
    @NotNull(message = "代理商ID不能为空")
    private Long agentId;

}